/*
    Project:        Home Power Control
    File:           HPCLogScreen.h
    Author:         christian@karunamusic.at
    Date:           01.2015
    Description:    Log to screen (stderr).
 */

#ifndef HPCLOGSCREEN_H
#define HPCLOGSCREEN_H

#include "HPCLogDevice.h"

class HPCLogScreen : public HPCLogDevice
{
    Q_OBJECT
public:
    /** \brief Constructor.
     *
     * \param lv The loglevel.
     */
    HPCLogScreen( TLogLevel lv );
    /** \brief Constructor.
     *
     * \param lv The loglevel.
     */
    HPCLogScreen( const QString& lv );
    /** \brief Destructor
     */
    virtual ~HPCLogScreen();

    /** \brief Callback method for the logmessage.
     * Print given logmessage to screen (stderr).
     *
     * \param lm the logmessage
     */
    virtual void OnLog( const HPCLogMessage& lm );
};

#endif // HPCLOGSCREEN_H
